<x-layout>
  <style>
    .container-page{
      padding-left:0px;
    }
  </style>
  <section class="container container-page">
    <div class="content">
      <header class="article-header">
        <h1 class="article-title">所有分类</h1>
      </header>
      
      <ul class="plinks ptags">
        @foreach($typelist as $item)
        <li>
          <a href="{{url('/', ['typeid' => $item->id])}}" target="_blank">
            {{$item->name}}<span class="badge">{{$item->count}}</span>
          </a>
        </li>
        @endforeach
      </ul>

      <!-- 分页样式 -->
      <nav class="pagination">
          {{ $typelist->onEachSide(1)->links() }}
      </nav>
    </div>
  </section>
</x-layout>